<nz-card [nzBordered]="false">
  <nz-spin *ngIf="isLoading" class="modal-spin"></nz-spin>
  <form nz-form [formGroup]="validateForm" *ngIf="!isLoading" (ngSubmit)="submitForm()">
    <ng-container *ngFor="let level of levelOptions">
      <nz-form-item>
        <nz-form-label [nzSpan]="6" nzRequired nzFor="price_{{level.id}}">{{level.name}}价(￥)</nz-form-label>
        <nz-form-control [nzSpan]="10" [nzValidateStatus]="validateForm.controls['price_'+level.id]">
          <nz-input-number style="width: 100%;" [nzMin]="1" [nzMax]="9000000" [nzStep]="5"
                           formControlName="price_{{level.id}}" [nzPlaceHolder]="level.name+'价'"></nz-input-number>
          <nz-form-explain
            *ngIf="validateForm.get('price_'+level.id).dirty && validateForm.get('price_'+level.id).hasError('required')">
            {{level.name}}价
          </nz-form-explain>
        </nz-form-control>
      </nz-form-item>
    </ng-container>
    <nz-form-item style="margin-top: 20px;border-top: 1px solid #d0d0d0; padding-top: 12px;">
      <nz-form-control [nzSpan]="19" [nzOffset]="5">
          <!--<button nz-button type="button" (click)="goBack()">返回列表</button>-->
          <button nz-button type="button" (click)="prev()" style="margin-right: 10px;" *ngIf="!entity.id">上一步</button>
          <button nz-button type="submit" [nzType]="'primary'">保存</button>
       </nz-form-control>
    </nz-form-item>
  </form>
</nz-card>
